package de.fhb.itunes.repository.data;

import java.sql.Date;

public class Episode_VO extends MedienFile_VO {
	private int episodennummer,staffelnummer;
	private String staffelname ;


	public int getStaffelnummer() {
		return staffelnummer;
	}

	public void setStaffelnummer(int staffelnummer) {
		this.staffelnummer = staffelnummer;
	}

	public String getStaffelname() {
		return staffelname;
	}

	public void setStaffelname(String staffelname) {
		this.staffelname = staffelname;
	}

	public int getEpisodennummer() {
		return episodennummer;
	}

	public void setEpisodennummer(int episodennummer) {
		this.episodennummer = episodennummer;
	}

	public Episode_VO() {
		super();
		
	}

	public Episode_VO(int id, int trackid, String titel, String genre,
			String pfad, long laenge, Date added, int episodennummer) {
		super(id, trackid, titel, genre, pfad, laenge, added);
		this.episodennummer = episodennummer;
	}
	public boolean equals(Object obj){
		boolean erg = false;
		if(obj != null){
			if(obj instanceof Episode_VO){
				Episode_VO epi = (Episode_VO) obj;
				if(this.episodennummer == epi.episodennummer){
					if( super.equals(obj)){
						erg = true;
					}
				}
			}
		}
		return erg;
	}
}
